/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bancoDeDados;

import com.mysql.jdbc.CommunicationsException;
import com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException;
import java.sql.SQLException;
import regraDeNegocio.RNPlaqueta;

/**
 *
 * @author Gean
 */
public class BDPlaqueta {
    
    public void insertBD(RNPlaqueta rnPlaq) throws MySQLIntegrityConstraintViolationException, CommunicationsException, SQLException{
        Conexao c = new Conexao();
        c.insert("INSERT INTO plaqueta (NumPlaqueta, SituacaoPlaq) VALUES ('"+rnPlaq.getNumero()+"','"+rnPlaq.getSituacao()+"')");
    }    
    
  }
